package hankz.spring.beans.factory.config;

import hankz.spring.beans.factory.BeanFactory;
import hankz.spring.beans.BeansException;

/**
 * @description: TODO
 * @author: zzc
 * @modified By: zzc
 * @date: Created in 2021/11/21 17:26
 * @version:v1.0
 */
public interface AutowireCapableBeanFactory extends BeanFactory {

    /**
     * 执行BeanProcessor接口实现类的postProcessBeforeInitialization方法
     *
     * @param existingBean
     * @param beanName
     * @return
     * @throws BeansException
     */
    Object applyBeanPostProcessorsBeforeInitialization(Object existingBean, String beanName) throws BeansException;

    Object applyBeanPostProcessorsAfterInitialization(Object existingBean, String beanName) throws BeansException;

}
